package com.common.core.exception;

import lombok.Data;

@Data
public class PlatformException extends RuntimeException {
    private static final long serialVersionUID = -6478275292839644559L;

    private PlatformException(){
    }

    public PlatformException(String code,String message){
        this.code = code;
        this.msg = message;
    }

    public PlatformException(String message){
        this.msg = message;
    }

    private String code = "999999";//异常代码,默认999999
    private String msg;//异常描述
}
